package com.shop.feign;

import com.shop.domain.Order;
import com.shop.entity.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

@FeignClient(name = "order")
public interface OrderFeign {
    /**
     * 条件查询
     * @param order
     * @return
     */
    @PostMapping("/Order/selectList")
    Result<List<Order>> selectList(@RequestBody Order order);
}
